function specflux = tiraFluxo(note,onsets)

plc = 1;

for i=1:length(onsets)
    
        size = length(note(i).spflux);
    
        specflux(plc:plc+size-1) = note(i).spflux;

    plc = plc+size;
end